﻿using System;
using System.Collections.Generic;
using System.Text;
using YL.Core.Entity;

namespace IServices
{
    public interface IWhr_user_refresh_tokenServices : IBaseServices<Whr_user_refresh_token>
    {
        bool IsValidRefreshToken(string refreshToken);

        bool CreateRefreshToken(string token, int userId, double minutes = 1);

        bool RemoveRefreshToken(string refreshToken);

        bool RemoveRefreshTokenByUserId(int userId);
    }
}
